<?php $this->load->view('common/head');?>
<?php $this->load->view('common/navbar');?>
<style type="text/css">
	.form-group{margin-top:10px; }
</style>
<!-- 查询框开始 -->
<div class="table-responsive">
<form class="form-inline" method="GET" name="query" id="query">
<input type="hidden" name="c" id="c" value="<?=$this->input->get('c')?>">
<input type="hidden" name="m" id="m" value="<?=$this->input->get('m')?>">
</form>
</div>
<!-- 查询框结束 -->
<div class="table-responsive">
	<button type="button" onclick="window.location.href='<?=printUrl('SpreadSettle','roleAdd')?>'" class="btn btn-default btn-primary">添加</button>
  	<button type="button" onclick="window.location.href='<?=$breadcrumb[count($breadcrumb)-2]['url']?>'" class="btn btn-default btn-primary">返回</button>
</div>
<!-- 表格列表 -->
<div style="margin-top: 10px;">
<table class="table table-bordered table-condensed">
	<thead>
	  <tr>
	    <!-- <th class="bg-primary text-center">所属双月</th> -->
	    <th class="bg-primary text-center">专营店编码</th>
	    <th class="bg-primary text-center">地区</th>
	    <th class="bg-primary text-center">大区</th>
	    <th class="bg-primary text-center">小区</th>
	    <th class="bg-primary text-center">专营店名称</th>
	    <th class="bg-primary text-center">基金类型</th>
	    <th class="bg-primary text-center">开放时间</th>
	    <th class="bg-primary text-center">截止时间</th>
	    <th class="bg-primary text-center">操作</th>
	  </tr>
	</thead>
	<tbody>
	  <?php foreach ($supplementList as $k => $v) {?>
	  <tr class="<?=$v['isDel']==1?'danger':'success'?>">
	    <!-- <td class="text-center"><?=$v['timeUnitStr']?></td> -->
	    <td class="text-center"><?=isset($allStoreList[$v['storeId']]) ? $allStoreList[$v['storeId']]['coding'] : ''?></td>
	    <td class="text-center"><?=isset($allStoreList[$v['storeId']]) ? $allStoreList[$v['storeId']]['area'] : ''?></td>
	    <td class="text-center"><?=isset($allStoreList[$v['storeId']]) ? $allStoreList[$v['storeId']]['region'] : ''?></td>
	    <td class="text-center"><?=isset($allStoreList[$v['storeId']]) ? $allStoreList[$v['storeId']]['spsarea'] : ''?></td>
	    <td class="text-center"><?=isset($allStoreList[$v['storeId']]) ? $allStoreList[$v['storeId']]['storeName'] : ''?></td>
	    <td class="text-center"><?=$v['fundTypeStr']?></td>
	    <td class="text-center"><?=$v['startTimeStr']?></td>
	    <td class="text-center"><?=$v['endTimeStr']?></td>
	    <td class="text-center">
	    	<button type="button" class="btn btn-default" onclick="newWindow('修改','<?=printUrl('SpreadSettle','roleEdit', array('id'=>$v['id']))?>',400,350)" role="button">修改</button>
	      	<button type="button" class="btn btn-default" onclick="ajaxConfirmSubmit('您确定要<?=$v['isDel']==1?'开通':'关闭'?>此专营店单店特殊吗？','<?=printUrl('Supplement','roleClose')?>',{'id':<?=$v['id']?>,'isDel':<?=$v['isDel']==1?0:1?>})"><?=$v['isDel']==1?'开通':'关闭'?></button>
	    </td>
	  </tr>
	  <?php } ?>
	</tbody>
</table>
</div>
<!-- 分页 -->
<?=$pager?>
<?php $this->load->view('common/foot');?>